<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs EventHttpConnection object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttpconnection.getbase.html">EventHttpConnection::getBase</a></div>
 <div class="up"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventhttpconnection.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventHttpConnection::__construct</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventHttpConnection::__construct</span> &mdash; <span class="dc-title">Constructs EventHttpConnection object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventhttpconnection.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventHttpConnection::__construct</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="class.eventdnsbase.html" class="type EventDnsBase">EventDnsBase</a></span>
     <code class="parameter">$dns_base</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$address</code>
   </span>
   , <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$port</code>
   </span>
   )</div>

  <p class="para rdfs-comment">
   Constructs EventHttpConnection object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventhttpconnection.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">base</code></em>
    </dt>

    <dd>

     <p class="para">
      Associated event base.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">dns_base</code></em>
    </dt>

    <dd>

     <p class="para">
      If
      <em><code class="parameter">dns_base</code></em>
      is <strong><code>NULL</code></strong>, hostname resolution will block.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">address</code></em>
    </dt>

    <dd>

     <p class="para">
      The address to connect to.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">port</code></em>
    </dt>

    <dd>

     <p class="para">
      The port to connect to.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventhttpconnection.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns
   <a href="class.eventhttpconnection.html" class="classname">EventHttpConnection</a>
   object.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventhttpconnection.getbase.html">EventHttpConnection::getBase</a></div>
 <div class="up"><a href="class.eventhttpconnection.html">EventHttpConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
